from django import template
register=template.Library()
@register.filter
def albumcut(value):
    return value.replace('album/albumStatic/','')

@register.simple_tag
def strlength(value):
    return value[:56]+'......'

@register.simple_tag
def text(value):
    return value[:500]+'......'